package com.SpringMVC.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/hello")//作用在类上就是指明该类都是以此作为父路径
public class HelloMvcController {
   
	@RequestMapping("/mvc")//作用在方法上就是说该方法中以/mvc做为路径
	//host:8080/hello/mvc
	public String helloMvc() {
    	return "home";
    }
}
